<template>
  <div class="headCont">
    <div class="userCont">
      <img src="static/img/logo.png">
      <div class="userName">管理员</div>
    </div>
    <div class="outBtn" @click="outfn">退出</div>
  </div>
</template>

<script>
    export default {
        components: {},
        data() {
            return {
            }
        },
        props: {},
        methods: {
          outfn(){
            this.$router.push({path:'/login'})
          }
        },
        mounted() {
        },
        created() {
        },
    }
</script>

<style scoped lang="less">
  .headCont{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 15px;
    padding-right: 5%;
    box-sizing: border-box;
    align-items: center;
    background-color: #fff;
    .userCont{
      display: flex;
      align-items: center;
      margin-right: 30px;
      height: 40px;
      padding: 0 15px;
      box-sizing: border-box;
      border-radius: 5px;
      background-color: #fff;
      cursor: pointer;
      img{
        height: 25px;
        width: 25px;
        border-radius: 50%;
        margin-right: 10px;
      }
      .userName{
        color: #4fc763;
      }
    }
    .outBtn{
      color: white;
      background-color: #4fc763;
      border-radius: 5px;
      line-height: 40px;
      height: 40px;
      padding: 0px 25px;
      font-size: 14px;
      cursor: pointer;
    }
    .outBtn:hover{
      opacity: 0.9;
    }
  }
</style>
